set(BULL_HAL_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error -Wno-unused-but-set-parameter -Wno-Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-format-security -Wno-pointer-sign -Wno-unused-label -Wno-return-type -Wno-implicit-function-declaration")

# 包含头文件
set(include_dirs
    inc
    )

# 包含源文件
file(GLOB_RECURSE bull_hal_srcs RELATIVE ${BULL_HAL_CORE_DIR} "src/*.c")

list(APPEND srcs "${bull_hal_srcs}")


idf_component_register(SRCS "${srcs}"

INCLUDE_DIRS "${include_dirs}" PRIV_REQUIRES esp_wifi esp_netif nvs_flash driver esp_timer mqtt esp_http_client REQUIRES app_update REQUIRES driver)




